﻿var app = angular.module('pizzaApp', [
    'ngRoute'
]);

app.config(['$routeProvider', function ($routeProvider) {
    $routeProvider.when('/', {
        templateUrl: '/app/views/HomeView.html',
        controller: 'HomeController'
    }).when('/menu', {
        templateUrl: '/app/views/MenuView.html',
        controller: 'MenuController'
    }).when('/order', {
        templateUrl: '/app/views/OrderView.html',
        controller: 'OrderController'
    }).when('/create', {
        templateUrl: '/app/views/CreateView.html',
        controller: 'CreateMenuItemController'
    });
}]);